package com.pd.business;

import com.pd.dao.model.ResourceDo;
import com.pd.dao.model.TreeNode;

import java.util.List;

/**
 * Created by dong peng on 2018/1/24.
 */
public interface ResourceService {

    /**
     * 查询资源
     *
     * @return
     */
    public List<ResourceDo> query();

    /**
     * 查某角色的资源以树形式展现
     * @return
     */
    public List<TreeNode> queryTreeNode(Integer roleId);

    /**
     * 增加资源
     * @param resourceDo
     * @return
     */
    public Integer add(ResourceDo resourceDo);

    /**
     * 修改资源
     *
     * @param resourceDo
     * @return
     */
    public Integer modify(ResourceDo resourceDo);

    /**
     * 删除资源
     *
     * @param id
     * @return
     */
    public Integer delete(Integer id);
}
